// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  compatibilityDate: '2025-05-15',
  devtools: { enabled: false },
  modules: ['@element-plus/nuxt'],

  postcss: {
    plugins: {
      // tailwindcss: {},
      autoprefixer: {},
    },
  },
  css: [
    '~/assets/css/main.css',
  ],
  app: {
    // layout: 'demo',
    head: {
      link: [
        { rel: 'icon', type: 'image/x-icon', href: '/icons8-tunnel-100.png' } // 指向 public/favicon.ico
      ],
      title: 'SDU齐鲁交通学院',
      script: [
        {
          type: 'text/javascript',
          src: 'https://webapi.amap.com/maps?v=2.0&key=76c16889f1d23d32bc11c6db58e3bf52'
        }
      ]
    }
  },
  // plugins: [
  //   '~/plugins/element-icons.ts'
  // ]
  // vite: {
  //   css: {
  //     preprocessorOptions: {
  //       scss: {
  //         additionalData: `
  //           @import "~/assets/SCSS/element-variables.scss";
  //         `
  //       }
  //     }
  //   }
  // }
  vite: {
    css: {
      preprocessorOptions: {
        scss: {
          additionalData: `@use "~/assets/SCSS/element-variables.scss" as element;`,
        },
      },
    },
  },
  elementPlus: {
    // icon: 'ElIcon',
    importStyle: 'scss',
    // themes: ['dark'],
  },
})
